package cn.tedu.submarine;

import javax.swing.ImageIcon;
/**
 * 鱼雷潜艇类
 */
public class TorpedoSubmarine extends SeaObject{
    public TorpedoSubmarine() {
        super(64, 20);
    }

    @Override
    public void move() {
        //鱼雷潜艇向右移动
        setX(getX()+getSpeed());
    }

    @Override
    public ImageIcon getImage() {
        return Images.torpesubm;
    }
}
